<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main2"/>
    <g:set var="entityName" value="${message(code: 'account.label', default: 'Account')}"/>
    <title>编辑产品-阶段信息</title>
</head>

<body>
<div class="main-body">
    <div class="page-wrapper">
        <!-- Page-header start -->
        <div class="page-header">
            <div class="page-header-title">
                <h4>编辑产品-阶段信息</h4>
            </div>

            <div class="page-header-breadcrumb">
                <ul class="breadcrumb-title">
                    <li class="breadcrumb-item">
                        <a href="/salesDashboard/index">
                            <i class="icofont icofont-home"></i>
                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <g:link controller="productOpportunityStage" action="index">产品-阶段信息</g:link>
                    </li>
                    <li class="breadcrumb-item">编辑产品-阶段信息</li>
                </ul>
            </div>
        </div>
        <!-- Page-header end -->
        <!-- Page-body start -->
        <div class="page-body">
            <g:if test="${flash.message}">
                <div class="message alert alert-info" role="status">${flash.message}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                            aria-hidden="true">×</span></button>
                </div>
            </g:if>
            <g:hasErrors bean="${this.productOpportunityStage}">
                <ul class="errors" role="alert">
                    <g:eachError bean="${this.productOpportunityStage}" var="error">
                        <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                                error="${error}"/></li>
                    </g:eachError>
                </ul>
            </g:hasErrors>
        <!-- Hover table card start -->
            <div class="card">
                <div class="card-header">
                    <h5>编辑产品-阶段信息</h5>

                    <div class="card-header-right">
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>

                <div class="card-block">

                    <g:form resource="${this.productOpportunityStage}" action="update">
                        <div class="form-group row">
                            <label class="col-md-2 control-label is-required">产品</label>

                            <div class="col-md-3">
                                <g:select class="form-control" name="product"
                                          value="${this.productOpportunityStage?.product?.id}"
                                          id="product" optionKey="id" from="${com.next.Product.findAllByActive(true)}"
                                          noSelection="${['': '请选择']}"/>
                            </div>
                            <label class="col-md-2 control-label is-required">编号</label>

                            <div class="col-md-3">
                                <g:textField class="form-control" name="code" id="code"
                                             value="${this.productOpportunityStage?.code}"/>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-md-2 control-label is-required">概率</label>

                            <div class="col-md-3">
                                <g:textField class="form-control" name="probability" id="probability"
                                             value="${this.productOpportunityStage?.probability}"/>
                            </div>
                            <label class="col-md-2 control-label is-required">组件</label>

                            <div class="col-md-3">
                                <g:select class="form-control" name="component"
                                          value="${this.productOpportunityStage?.component?.id}"
                                          id="component" optionValue="name" optionKey="id"
                                          from="${com.next.Component.findAllByActive(true)}"
                                          noSelection="${['': '请选择']}"/>
                            </div>

                        </div>


                        <div class="form-group row">

                            <label class="col-md-2 control-label is-required">阶段</label>

                            <div class="col-md-3">
                                <g:select class="form-control" name="stage"
                                          value="${this.productOpportunityStage?.stage?.id}"
                                          id="stage" optionKey="id" from="${com.next.OpportunityStage.list()}"
                                          noSelection="${['': '请选择']}"/>
                            </div>

                        </div>

                        <div class="form-group row">
                            <label class="col-md-2 control-label">日志</label>

                            <div class="col-md-8">
                                <g:textArea class="form-control" name="log" id="log" rows="3"
                                            value="${this.productOpportunityStage?.log}"/>

                            </div>
                        </div>


                        <div class="form-group row">
                            <div class="col-md-12">
                                <g:submitButton class="btn btn-info" name="update" value="保存"/>
                            </div>
                        </div>
                    </g:form>

                </div>
            </div>
            <!-- Hover table card end -->
        </div>

        <!-- Page-body end -->
    </div>
</div>

</body>

</html>








